/* 表单通用 */
.form-panel {
  animation: fadeIn 0.4s ease forwards;
}

.form-logo {
  width: 64px;
  height: 64px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.form-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  z-index: 1;
}

.form-input {
  width: 80%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  color: #1f2937;
  background-color: white;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  z-index: 1;
}

/* 按钮 */
.submit-btn {
  width: 100%;
  height: 50px;
  background-color: gainsboro;
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-btn:hover:not(:disabled) {
  background-color: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

/* 表单操作区 */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  color: var(--neutral-color);
  cursor: pointer;
}

.checkbox-label input {
  margin-right: 8px;
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* 社交登录 */
.social-login {
  margin-top: 32px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider::before {
  margin-right: 16px;
}

.divider::after {
  margin-left: 16px;
}

.divider span {
  color: var(--neutral-color);
  font-size: 14px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  border: 1 solid var(--border-color);
  color: var(--neutral-color);
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.social-btn.wechat:hover {
  color: #07c160;
  border-color: #07c160;
}

.social-btn.qq:hover {
  color: #12b7f5;
  border-color: #12b7f5;
}

.social-btn.google:hover {
  color: #ea4335;
  border-color: #ea4335;
}

/* 响应式 */
@media (max-width: 480px) {
  .form-title {
    font-size: 22px;
  }

  .form-input,
  .submit-btn {
    height: 46px;
  }
}